<?php

$section = 'product';

$titre = _LB_EDIT_PRODUCT;
$smarty->assign('titre', $titre);

$id = Request::getIntNumber('id');
$backlink = Session::getBackLink('product');
$currentlink = APPLICATION_URL . "/product/delete/?id=". $id;

$product = new Product();
if(!$product->get($id)){
	redirect($backlink);
}

$product->delete();

redirect($backlink);